package team.xstudio.bedwarstoolkit.misc

import net.minecraft.core.registries.Registries
import net.minecraft.resources.ResourceKey
import net.minecraft.world.level.Level
import team.xstudio.bedwarstoolkit.utils.BWUtils

/**
 * Created in 2025/6/10
 * Project: bedwarstoolkit
 *
 * @author <a href="https://github.com/Bread-Nicecat">Bread_NiceCat</a>
 * <p>
 *
 * <p>
 **/
object BWLevels {
    val SKY_LEVEL_PATH = BWUtils.prefix("sky")
    val SKY_LEVEL: ResourceKey<Level> = ResourceKey.create(Registries.DIMENSION, SKY_LEVEL_PATH)

    fun isInSkyLevel(level: Level) = level.dimension() == SKY_LEVEL
}